package cn.magicduck.demo;

/**
 * @author 神奇的鸭鸭
 * @description
 * @date 2020/8/1415:32
 */
public class Singleton_01 {

    private static Singleton_01 instance;

    private Singleton_01() {
    }

    public static Singleton_01 getInstance() {
        if(null != instance) {
            return instance;
        }
        return new Singleton_01();
    }
}
